package fr.pascal;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {
	
	public static void main(String[] args) {
		
		List<Kangourou> kangourous = new ArrayList<Kangourou>();
		kangourous.add(new Kangourou("skippy", 17, "bleu"));
		
		kangourous.add(new Kangourou("lassie", 3, "orange"));
		kangourous.add(new Kangourou("flipper", 3, "rose"));
		
		kangourous.add(new Kangourou("joe", 11, "rouge"));
		kangourous.add(new Kangourou("tornado", 11, "vert"));
		kangourous.add(new Kangourou("rintintin", 11, "jaune"));
		
		System.out.println(kangourous);
		
		Collections.sort(kangourous, new KangourouNom());
		System.out.println(kangourous);
		
		Collections.sort(kangourous, new KangourouAge());
		System.out.println(kangourous);
		
		Collections.sort(kangourous, new KangourouPelage());
		System.out.println(kangourous);
		
		Collections.sort(kangourous, new KangourouAgeNom());
		System.out.println(kangourous);
	}
}
